import request from '@/utils/request'

// 查询工单附件列表
export function listOrderEnclosure(query) {
  return request({
    url: '/workOrder/OrderEnclosure/list',
    method: 'get',
    params: query
  })
}

// 查询工单附件详细
export function getOrderEnclosure(id) {
  return request({
    url: '/workOrder/OrderEnclosure/' + id,
    method: 'get'
  })
}

// 新增工单附件
export function addOrderEnclosure(data) {
  return request({
    url: '/workOrder/OrderEnclosure',
    method: 'post',
    data: data
  })
}

// 修改工单附件
export function updateOrderEnclosure(data) {
  return request({
    url: '/workOrder/OrderEnclosure',
    method: 'put',
    data: data
  })
}

// 删除工单附件
export function delOrderEnclosure(id) {
  return request({
    url: '/workOrder/OrderEnclosure/' + id,
    method: 'delete'
  })
}
